C code for PEGetGraphData and PESetGraphData

Use the following code as an example of how to call the PEGetGraphData and PESetGraphData functions:

PEGetGraphData

short            sectionCode,
    // The report section the graph is in
    graphN;    
    // The graph number in the section
struct PEGraphDataInfo graphDataInfo;
sectionCode = PE_DETAILSECTION;    
    // Graph is in Details section
graphN = 0;
    // First graph in section
    // Initialize size of graphDataInfo structure
graphDataInfo.StructSize = sizeof(PEGraphDataInfo);
if (!PEGetGraphData(Job, sectionCode, graphN, &graphDataInfo)){
    // Handle error
}

PESetGraphData

short            sectionCode,
    // The report section the graph is in
    graphN;
    // The graph number in the section
struct PEGraphDataInfo graphDataInfo;
sectionCode = PE_HEADERSECTION;
    // Graph is in Page Header section
graphN = 1;
    // Second graph in section
    // Initialize members of graphDataInfo structure
graphDataInfo.StructSize = sizeof(PEGraphDataInfo);
graphDataInfo.rowGroupN = 1;
    // Use value in Group 1 for rows
graphDataInfo.colGroupN = 2;
    // Use value in Group 2 for columns
graphDataInfo.summarizedFieldN = 0;
    // First summarized field
graphDataInfo.graphDirection = PE_MIXED_ROW_COL;
if (!PESetGraphData(Job, sectionCode, graphN, &graphDataInfo)){
    // Handle error
}


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com